package dancespeedyenumsmysql

//常识
//地理
//娱乐
//体育
//文学
//游戏
//历史
//
//小新没蜡笔:
//人物

const (
	DanceProblemCommonSense   = "1"
	DanceProblemGeography     = "2"
	DanceProblemEntertainment = "3"
	DanceProblemSports        = "4"
	DanceProblemLiterature    = "5"
	DanceProblemGames         = "6"
	DanceProblemHistory       = "7"
	DanceProblemCharacters    = "8"
	DanceProblemSplit         = ","
)

type DanceProblemEnums struct {
}

var DanceProblemEnumsObject DanceProblemEnums

func (e DanceProblemEnums) Tags() []string {
	return []string{
		DanceProblemCommonSense,
		DanceProblemGeography,
		DanceProblemEntertainment,
		DanceProblemSports,
		DanceProblemLiterature,
		DanceProblemGames,
		DanceProblemHistory,
		DanceProblemCharacters,
	}
}

func (e DanceProblemEnums) TagsMap() map[string]string {
	m := make(map[string]string)
	for _, s := range e.Tags() {
		m[s] = s
	}
	return m
}

func (e DanceProblemEnums) TagsString(tag string) string {
	switch tag {
	case DanceProblemCommonSense:
		return "常识"
	case DanceProblemGeography:
		return "地理"
	case DanceProblemEntertainment:
		return "娱乐"
	case DanceProblemSports:
		return "体育"
	case DanceProblemLiterature:
		return "文学"
	case DanceProblemGames:
		return "游戏"
	case DanceProblemHistory:
		return "历史"
	case DanceProblemCharacters:
		return "人物"
	default:
		return "未知"
	}
}
